package com.ajk.server.service;

import java.util.List;

import com.ajk.server.model.Knowledge;
import com.ajk.server.model.query.KnowledgeQuery;
import com.ajk.server.model.response.KnowledgeRes;

public interface KnowledgeService {
	/**
	 * 列表
	 * @param knowledge
	 * @return
	 */
	public List<KnowledgeRes> list(Knowledge knowledge,Integer start,Integer limit);
	/**
	 * 详情
	 * @param knowledge
	 * @return
	 */
	public KnowledgeRes detail(Knowledge knowledge);
	
	public KnowledgeRes getById(Integer id);
	
	/**
	 * 文章添加
	 * @param knowledge
	 * @return
	 */
	public Integer add(Knowledge knowledge);
	/**
	 * 文章删除
	 * @param knowledge
	 */
	public void delete(Integer id);
	/**
	 * 文章修改
	 * @param knowledge
	 */
	public void update(Knowledge knowledge);

	/**
 	*通过query 查询 健康资讯表
 	*/
	public List<Knowledge> findKnowledgeByQuery(KnowledgeQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countKnowledgeByQuery(KnowledgeQuery query);
 	
}
